package com.yanqu.road.entity.assistant;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_u_assistant_zs_set")
public class UserAssistantZsSetData extends DataObject {
    @FieldTypeAnnotation(desc = "用户id",select = true,update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "招商配置是否开启")
    private boolean isOpen;
    @FieldTypeAnnotation(desc = "招商配置,执行顺序")
    private List<Integer> typeList = new ArrayList<>();

    public UserAssistantZsSetData() {
    }

    public UserAssistantZsSetData(long userId) {
        this.userId = userId;
        this.isOpen = false;
        setInsertOption();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public boolean isOpen() {
        return isOpen;
    }

    public void setOpen(boolean open) {
        isOpen = open;
    }

    public List<Integer> getTypeList() {
        return typeList;
    }

    public void setTypeList(List<Integer> typeList) {
        this.typeList = typeList;
        setUpdateOption();
    }
}
